﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VietPublisher.BSL.BK;

namespace VietPublisher.Repositories.Interface
{
    public interface IPublisherRepository
    {
        /// <summary>
        /// Get a list of Publisher
        /// </summary>
        /// <returns></returns>
        List<T_BK_Publisher> GetPublisherList();

        /// <summary>
        /// Get a publisher by BookID
        /// </summary>
        /// <param name="bookID"></param>
        /// <returns></returns>
        T_BK_Publisher GetPublisherByBook(int bookID);

        /// <summary>
        /// Get a publisherName from  BookID
        /// </summary>
        /// <param name="bookID"></param>
        /// <returns></returns>
        String GetPublisherNameByBook(int bookID);

        /// <summary>
        /// Get PublisherID from BookID
        /// </summary>
        /// <param name="bookID"></param>
        /// <returns></returns>
        int GetPublisherIDByBook(int bookID);
        
        /// <summary>
        /// Change publisher infomation 
        /// </summary>
        /// <param name="publisher"></param>
        /// <returns></returns>
        Boolean ChangePublisherInfo(T_BK_Publisher publisher);
        
        /// <summary>
        /// Create a publisher
        /// </summary>
        /// <param name="publisher"></param>
        /// <returns></returns>
        int CreatePublisher(T_BK_Publisher publisher);

    }
}
